#include <stdio.h>

int main() {
	double res=0;int n,i=0;
	scanf("%d",&n);
	do{
		res+=1/(double)(i+1);
		i++;
	}while(i<n);
	printf("%.2lf",res);
	return 0;
}